<% content_for :body_content_title do %>
  <%= @event.title %>
<% end %>

<% content_for :body_content_left do %>
  <h4>Event details</h4>
  <h5><%= @event.venue_name %></h5>

  <p>From <%= @event.from.strftime('%B %d, %Y %I:%M%p') %> to
      <br><%= @event.to.strftime('%B %d, %Y %I:%M%p') %></p>

  <% if @event.registration_link.present? %>
    <p><%= link_to 'Register for this event', @event.registration_link %></p>
  <% end -%>

  <% if @event.venue_address.present? %>
    <p><%= link_to 'View it on a map', "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=#{CGI::escape(@event.venue.address)}&ie=UTF8&z=16" %></p>
  <% end -%>

  <div class="event_description">
    <h4><%= @event.excerpt %></h4>
    <%=raw @event.description %>
  </div>
<% end %>

<% content_for :stylesheets, stylesheet_link_tag('events') %>

<%= render '/refinery/content_page' %>
